using Assets.Scripts.GDK;
using System.Collections.Generic;

namespace Brick
{
	public class GameGuideData
	{
		private static GameGuideModel[] _gameGuideArray;

		public static GameGuideModel[] gameGuideArray
		{
			get
			{
				return _gameGuideArray;
			}
			set
			{
				_gameGuideArray = value;
			}
		}

		public static List<int> guideEndList
		{
			get
			{
				List<int> list = new List<int>();
				if (gdk_localStorage.hasKey("guideEndList"))
				{
					string[] array = gdk_utils.Split(gdk_localStorage.getString("guideEndList"), ",");
					foreach (string text in array)
					{
						if (text != string.Empty)
						{
							list.Add(int.Parse(text));
						}
					}
				}
				return list;
			}
			set
			{
				string text = string.Empty;
				for (int i = 0; i < value.Count; i++)
				{
					string text2 = value[i].ToString();
					if (text2 != string.Empty)
					{
						text = text + text2 + ",";
					}
				}
				gdk_localStorage.setString("guideEndList", text);
			}
		}
	}
}

